<include file="./Tm/Dt/Top.html" />

<include file="./Tm/Dt/Left.html" />


<div id="right">
    <include file="./Tm/Dt/Nav.html" />
    <!--主要内容块-->
    <script type="text/javascript" src="__PUBLIC__/Dt/lib/jedate/jedate.min.js" ></script>
    <div class="main">
        <div class="index_cont">


            <div class="table-responsive table_box">
                <div>
                    <ul class="nav nav-tabs">
                        <li class="active">
                            <a href="#panel-32409" data-toggle="tab">订单列表</a>
                        </li>
                    </ul>
                </div>
                <div class="selct">
                    <form class="form-inline" role="form">
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-addon">开始时间</div>
                                <input id="b" name="b" class="form-control stu1" type="text" placeholder="输入开始日期" value="{$begintime}">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-addon">结束时间</div>
                                <input id="e" name="e" class="form-control stu2" type="text" placeholder="输入结束日期" value="{$endtime}">
                            </div>
                        </div>
                        <script type="text/javascript">
                            jeDate({
                                dateCell:".stu1",
                                format:"YYYY-MM-DD",
                                isTime:false,
                                minDate:"2017-1-1",
                                maxDate:"2099-12-12"
                            });
                            jeDate({
                                dateCell:".stu2",
                                format:"YYYY-MM-DD",
                                isTime:false,
                                minDate:"2017-1-1",
                                maxDate:"2099-12-12"
                            });
                        </script>
                        <input type="submit" class="btn btn-default" value="查询"/>
                    </form>
                </div>
                <table class="table">
                    <tr>
                        <th>订单号</th>
                        <th>商品名称</th>

                        <th>数量</th>
                        <th>总积分</th>
                        <th>快递</th>
                        <th>下单时间</th>
                        <th>状态</th>
                    </tr>
                    <volist name="room" id="vo" key="i">
                        <tr>
                            <td>{$vo.orderid}</td>
                            <td>{$vo.productname}</td>

                            <td>{$vo.number}</td>
                            <td>
                                {$vo.price}
                            </td>

                            <td>快递：{$vo.kdgs}<br>单号：{$vo.kddh}</td>
                            <td>
                                {$vo.createtime|date="Y-m-d H:i:s",###}
                            </td>
                            <td>
                                <switch name="vo.status">
                                    <case value="1">
                                        下单
                                    </case>
                                    <case value="2">
                                        已付款
                                    </case>
                                    <case value="3">
                                        已发货　<a href="/order/comfirm?id={$vo.id}">收货</a>
                                    </case>
                                    <case value="4">
                                        交易成功
                                    </case>
                                    <case value="5">
                                        退货
                                    </case>
                                    <case value="6">
                                        关闭
                                    </case>

                                </switch>

                                <a href="/user/view.html?id={$vo.id}">详情</a>
                            </td>
                        </tr>
                    </volist>
                </table>

                <gt name="total" value="$pagesize">
                    <include file="./Tm/Dt/Page.html" />
                </gt>
            </div>
        </div>
    </div>
</div>
<include file="./Tm/Dt/Foot.html" />